package com.shanshan.crowd.mvc.controller;

//import com.shanshan.crowd.entity.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description
 * @ClassName AjaxController
 * @Author 山山大魔王
 * @Date 2022/7/19 23:11
 * @Version 1.0
 */
@Controller
public class AjaxController {
    @ResponseBody
    @RequestMapping("/send/array/plan/one.html")
    public String receiveArrayPlanOne(@RequestBody Integer[] empldArray){
//        System.out.println();
        for (Integer empId : empldArray) {
            System.out.println(empId);
        }

        System.out.println(10/0);
        return "success";
    }

//    @ResponseBody
//    @RequestMapping("/save/student.html")
//    public String saveStudent(@RequestBody Student student){
//        System.out.println(student);
//        return "success";
//    }
}
